package com.token.iot.bratterycharging.gateway.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.token.iot.bratterycharging.gateway.api.Device;

/**
 * 设备登记
 * @author chenzhixuan
 *
 */
@Service
@Repository
public interface DeviceDAO {
	
	
	public int insert(Device device);
	
	
	public int update(@Param("ip") String ip,@Param("id")long id);
	
	
	public Device selectByImei(@Param("imei")String imei);
}
